package com.itheima.oopadvanced.staticdemo;

/**
 * @author Anomaly
 * @date 2022/12/8 20:24
 */
public class StaticDemo1 {
    public static void main(String[] args) {
        System.out.println(User.onlineNumber);
        User.onlineNumber++;
        System.out.println(User.onlineNumber);

        User user = new User();
        System.out.println(user.name);
    }
}
